      1  import javax.swing.JFrame;

      2

      3  public class CalculatorViewer

      4  {

      5     public static void main(String[] args)

      6     {

      7        JFrame frame = new CalculatorFrame();

      8        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

      9        frame.setTitle("Calculator");

     10        frame.setVisible(true);

     11     }

     12  }